﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MINERP.DAL;
using MINERP.DAL.InfoConfig;


namespace MINERP.BLL.InfoConfig
{
    public  class CostTypeBLL
    {

        #region //Private Fields


        #endregion


        #region //Public Properties

        #endregion



        #region //Public Methods
        /// <summary>
        /// 获得计价类型list
        /// </summary>
        /// <returns></returns>
        public List<tb_CostType> GetCostTypeList()
        {
            return CostTypeDAL.GetCostTypeList();
        }
        /// <summary>
        /// 获得单个计价类型对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public tb_CostType GetCostTypeObj(int id)
        {
            return CostTypeDAL.GetCostTypeObj(id);
        }
        /// <summary>
        /// 获得单个计价类型对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public tb_CostType GetCostTypeObj(string  name)
        {
            return CostTypeDAL.GetCostTypeObj(name);
        }
        /// <summary>
        /// 添加计价类型
        /// </summary>
        /// <param name="obj"></param>
        public void Add(tb_CostType obj)
        {
            CostTypeDAL.Add(obj);
        }
        /// <summary>
        /// 更新计价类型
        /// </summary>
        public void Update()
        {
            CostTypeDAL.Update();
        }
        /// <summary>
        /// 删除计价类型
        /// </summary>
        /// <param name="obj"></param>
        public void Delete(tb_CostType obj)
        {
            CostTypeDAL.Delete(obj);
        }
        #endregion
    }
}
